from django.db import models
from django.forms.models import ModelForm


# Create your models here.
class GoodNumbers(models.Model):
    id = models.AutoField(primary_key=True)
    name = models.CharField(max_length=120,verbose_name="姓名")
    password=models.CharField(max_length=20,verbose_name="密码")
    mobile=models.CharField(max_length=11,verbose_name="手机号")
    price=models.IntegerField(verbose_name="价格",default=0)
    choice1=(
        (1,"一级"),
        (2,"二级"),
        (3,"三级"),
        (4,"四级"),
        (5,"五级"),
    )
    level=models.SmallIntegerField(default=1,choices=choice1,verbose_name="等级")
    choice2=(
        (1,"未占用"),
        (2,"占用"),
    )
    status=models.IntegerField(default=1,choices=choice2,verbose_name="状态")


